import React, { PureComponent } from 'react'
import { View, Text, StyleSheet } from 'react-native'
import PropTypes from 'prop-types'
import screen from '../../../utils/screen'

export default class extends PureComponent {
  static propTypes = {
    content: PropTypes.string
  }
  render() {
    const { content }  = this.props
    return (
      <View style={styles.container}>
        <View style={{backgroundColor: '#39c0e7', paddingHorizontal: screen.pxToDp(32), paddingVertical: screen.pxToDp(14)}}>
          <Text style={{color: 'white'}}>{content}</Text>
        </View>
      </View>
    )
  }
}

const styles = StyleSheet.create({
  container: {
    backgroundColor: 'white',
    paddingLeft: screen.pxToDp(28),
    paddingVertical: screen.pxToDp(20),
    alignItems: 'flex-start'
  }
})
